package cn.edu.scau.cmi.ZengLinghong.chapter03;

import java.util.Scanner;

public class practice {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		double sum=0;
		int m=0;
		while(reader.hasNextDouble()) {
			double x=reader.nextDouble();
			m+=1;
			sum+=x;
		}
		System.out.printf("%d个数的和为%f\n",m,sum);
		System.out.printf("%d个数的平均值为%f\n",m,sum/m);
	}
}
	
